<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AlterUserContractAddDetailStatus extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('open_shop_user_contract', function (Blueprint $table) {
            $table->string('detailStatus', 36)->default("")->after('contractStatus')->comment('合同详细状态');
            $table->unsignedInteger('signTime')->default(0)->after('contractStatus')->comment('签约时间');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('open_shop_user_contract', function (Blueprint $table) {
            $table->dropColumn('detailStatus');
            $table->dropColumn('signTime');
        });
    }
}
